/*
 * @Author: LVGRAPE
 * @LastEditors: LVGRAPE
 */

#ifndef __UART_H__
#define __UART_H__
#include <stdint.h>

#define UART_BUF_SIZE 8192

int uart_win_init(char *port_name, uint32_t baudrate);
int uart_win_set_rts(int fcom, int level);
int uart_win_clear();
int uart_win_read(uint8_t *data);
int uart_win_read_bytes(uint8_t *data, uint16_t len);
int uart_win_write(uint8_t *data, uint16_t len);
#endif // __UART_H__
